package cn.kgc.dto;

import cn.kgc.entity.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2022年12月13日8:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SearchResult {
    private List<SkuEsModel> skuEsModels; //当前中对应的商品信息
    private Integer pageNum; //当前页
    private Long total; //总记录数
    private long totalPages; //总页数
    private List<BrandVO> brandVOList=new ArrayList<>(); //品牌信息
    private List<AttrVo> attrVoList=new ArrayList<>(); //属性信息
    private List<CategoryVo> categoryVoList=new ArrayList<>(); //品牌信息

    @Data
    public static class CategoryVo{ //分类信息
        private Long categoryId;
        private String categoryName;
    }
    @Data
    public static class BrandVO{
        private Long brandId; //品牌id
        private String brandName;
        private String brandImage;
    }
    @Data
    public static class AttrVo{
        private Long attrId; //属性id
        private String attrName; //属性名
        private List<String> attrValue; // 属性值
    }
}
